﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MyToolkit.Com
{
    [Serializable]
    public class DbTable
    {
        public String Name { get; set; }
        public List<DbTableColumn> Columns { get; set; }

        public DbTable()
        {
            Columns = new List<DbTableColumn>();
        }
    }
    [Serializable]
    public class DbTableColumn
    {
        public String Name { get; set; }
        public String DatabaseType { get; set; }
        public String CSharpType { get; set; }
        public Boolean IsPK { get; set; }
        public Int32 Length { get; set; }
        public Boolean IsNull { get; set; }
        public Boolean IsIdentity { get; set; }
        public String DefaultValue { get; set; }
        public string Description { get; set; }
    }
}
